﻿@model PaymentHelper.Methods.PaypalDirect.Models.ConfigModel

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                @Html.LabelFor(model => model.api_username)
            </td>
            <td>
                @Html.EditorFor(model => model.api_username)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.api_username)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.api_userpass)
            </td>
            <td>
                @Html.EditorFor(model => model.api_userpass)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.api_userpass)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.api_signature)
            </td>
            <td>
                @Html.EditorFor(model => model.api_signature)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.api_signature)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.use_sandbox)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.use_sandbox)
            </td>
            <td>
                &nbsp;
            </td>
        </tr>      
        <tr>
            <td>&nbsp;</td>
            <td>
                <input type="submit" value="Save" name="SaveConfig" />
            </td>          
            <td>&nbsp;</td>  
        </tr>
    </table>
}